import axios from "axios"
export const addNumAction=()=>{
    return{
        type:'ADD_NUM'
    }
}
export const activeAction=(index)=>{
    return{
        type:'ACTIVE',
        payload:index
    }
}
export const getListAction=()=>(dispatch)=>{
    // return (dispatch)=>{
        axios.get("/list").then((res)=>{
             dispatch({
             type:"GET_LIST",
             payload:res.data
            
           })
        })
    }
        
    
// }